using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace SmartLink.DTOS.SysBasic
{
    public class InOrganizationDTO
    {
        /// <summary>
		/// 机构名称
        /// </summary>		
        [Required(ErrorMessage = "机构名称不能为空")]
        public string OrganizationName { get; set; }

        /// <summary>
        /// 简称
        /// </summary>		
        [Required(ErrorMessage = "机构简称不能为空")]
        public string OrganizationShorterName { get; set; }

        /// <summary>
        /// 组织类型
        /// </summary>		
        [Required(ErrorMessage = "组织类型不能为空")]
        public int? OrganizationType { get; set; }

        /// <summary>
        /// 组织类型名称
        /// </summary>
        public string OrganizationTypeName { get; set; }

        /// <summary>
        /// 组织父ID
        /// </summary>		
        public int? ParentID { get; set; }

        /// <summary>
        /// 组织父名称
        /// </summary>
        public string OrganizationParentName { get; set; }

        /// <summary>
        /// 组织所属区域  存 districtID
        /// </summary>		
        [Required(ErrorMessage = "所在地址不能为空")]
        public int? OrganizationDistrict { get; set; }

        /// <summary>
        /// 公司备注
        /// </summary>
        public string OrganizationDesc { get; set; }

        /// <summary>
        /// 电话
        /// </summary>		
        public string OrganizationPhone { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [Required(ErrorMessage = "手机号码不能为空")]
        [RegularExpression(RegexPattern.MobilePhone, ErrorMessage = "手机格式不正确")]
        public string ContactPhone { get; set; }

        /// <summary>
		/// Email
        /// </summary>		
        public string OrganizationEmail { get; set; }

        /// <summary>
        /// 主体地址
        /// </summary>		
        [Required(ErrorMessage = "详细地址不能为空")]
        public string OrganizationAddress { get; set; }

        /// <summary>
        /// 银行账户
        /// </summary>
	    public string BankAccount { get; set; }

        /// <summary>
        /// 银行账号
        /// </summary>
	    public string BankAccountNum { get; set; }

        /// <summary>
        /// 开户行
        /// </summary>
	    public string BankName { get; set; }
    }
}
